package com.zh.goods.service;

import com.zh.goods.domain.GoodsOrderDO;

import java.util.List;
import java.util.Map;

/**
 * 商品订单管理
 *
 * @author beicheng
 * @email 1992lcg@163.com
 * @date 2019-01-09 20:48:53
 */
public interface GoodsOrderService {


	GoodsOrderDO get(String id);

	List<GoodsOrderDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	/**
	 * 查询当月订单【计数】
	 * @return
	 */
	int getCountMonth();

	/**
	 * 查询当月订单
	 * @param map
	 * @return
	 */
	List<GoodsOrderDO> getMonthList(Map<String, Object> map);

	/**
	 * 商品总销售额
	 * @return
	 */
	int getSumGoodsOrderReceipt();

	/**
	 * 商品月销售额
	 * @return
	 */
	int getMonthSumGoodsOrderReceipt();

	int save(GoodsOrderDO scGoodsOrderReceipt);

	int update(GoodsOrderDO scGoodsOrderReceipt);

	int remove(String id);

	int batchRemove(String[] ids);

	int saveOrderAndOrderStatus(GoodsOrderDO scGoodsOrderReceiptDO);
}
